import request from '@/utils/request'

// 查询自动调拨列表
export function listTransfer(query) {
  return request({
    url: '/bill/transfer/list',
    method: 'get',
    params: query
  })
}

// 查询自动调拨详细
export function getTransfer(id) {
  return request({
    url: '/bill/transfer/' + id,
    method: 'get'
  })
}

// 新增自动调拨
export function addTransfer(data) {
  return request({
    url: '/bill/transfer',
    method: 'post',
    data: data
  })
}

// 修改自动调拨
export function updateTransfer(data) {
  return request({
    url: '/bill/transfer',
    method: 'put',
    data: data
  })
}

// 删除自动调拨
export function delTransfer(id) {
  return request({
    url: '/bill/transfer/' + id,
    method: 'delete'
  })
}

// 导出自动调拨
export function exportTransfer(query) {
  return request({
    url: '/bill/transfer/export',
    method: 'get',
    params: query
  })
}